﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    public class ProductType_FlowInfo
    {
        public ProductType_FlowInfo() { }

        public ProductType_FlowInfo(string productTypeID, string productTypeName, bool assembleStep, bool jointingStep, bool agingStep, bool debugATEStep, 
            bool debugStep, bool qCFixedStep, bool pIMStep, bool powerStep, bool debugActiveATEStep, bool voltageCheckStep, bool currentCheckStep, 
            bool sensitivityStep, bool aTEStep, bool activeATEStep, bool oIP3Step, bool hFATEStep, bool airtightnessStep,bool pIMSecondStep, 
            bool packCheckStep, bool packageStep)
        {
            this.ProductTypeID = productTypeID;
            this.ProductTypeName = productTypeName;
            this.AssembleStep = assembleStep;
            this.JointingStep = jointingStep;
            this.AgingStep = agingStep;
            this.DebugATEStep = debugATEStep;
            this.DebugStep = debugStep;
            this.QCFixedStep = qCFixedStep;
            this.PIMStep = pIMStep;
            this.PowerStep = powerStep;
            this.DebugActiveATEStep = debugActiveATEStep;
            this.VoltageCheckStep = voltageCheckStep;
            this.CurrentCheckStep = currentCheckStep;
            this.SensitivityStep = sensitivityStep;
            this.ATEStep = aTEStep;
            this.ActiveATEStep = activeATEStep;
            this.OIP3Step = oIP3Step;
            this.HFATEStep = hFATEStep;
            this.AirtightnessStep = airtightnessStep;
            this.PIMSecondStep = pIMSecondStep;
            this.PackCheckStep = packCheckStep;
            this.PackageStep = packageStep;
        }

        public string ProductTypeID { get; set; }
        public bool AssembleStep { get; set; }
        public bool JointingStep { get; set; }
        public bool AgingStep { get; set; }
        public bool DebugATEStep { get; set; }
        public bool DebugStep { get; set; }
        public bool QCFixedStep { get; set; }
        public bool PIMStep { get; set; }
        public bool PowerStep { get; set; }
        public bool DebugActiveATEStep { get; set; }
        public bool VoltageCheckStep { get; set; }
        public bool CurrentCheckStep { get; set; }
        public bool SensitivityStep { get; set; }
        public bool ATEStep { get; set; }
        public bool ActiveATEStep { get; set; }
        public bool OIP3Step { get; set; }
        public bool HFATEStep { get; set; }
        public bool AirtightnessStep { get; set; }
        public bool PIMSecondStep { get; set; }
        public bool PackCheckStep { get; set; }
        public bool PackageStep { get; set; }

        public string ProductTypeName { get; set; }
    }




    /// <summary>
    /// 新的工序显示表
    /// </summary>
    public class ProductType_Step_FlowInfo : ProductType_FlowInfo
    {
        public ProductType_Step_FlowInfo() { }

        public ProductType_Step_FlowInfo(string customerName, string productTypeID, string productTypeName, string assembleStep, string assembleStepStep
            , string jointingCheckStep, string blotScrewStep, string qCFixedCheckStep, string pCBAUnionStep, string agingStep, string debugStep, string aging2Step
            , string debug2Step, string debugATEStep, string pIMStep, string powerStep, string aTEStep, string hFATEStep, string airtightnessStep, string ePROMCheckStep
            , string vSWRCheckStep, string finalCheckStep, string packageStep)
        {
            this.CustomerName = customerName;
            base.ProductTypeID = productTypeID;
            base.ProductTypeName = productTypeName;
            base.AssembleStep = assembleStep == "1" ? true : false;
            this.AssembleStepStep = assembleStepStep == "1" ? true : false;
            this.JointingCheckStep = jointingCheckStep == "1" ? true : false;
            this.BlotScrewStep = blotScrewStep == "1" ? true : false;
            this.QCFixedCheckStep = qCFixedCheckStep == "1" ? true : false;
            this.PCBAUnionStep = pCBAUnionStep == "1" ? true : false;
            base.AgingStep = agingStep == "1" ? true : false;
            base.DebugStep = debugStep == "1" ? true : false;
            this.Aging2Step = aging2Step == "1" ? true : false;
            this.Debug2Step = debug2Step == "1" ? true : false;
            base.DebugATEStep = debugATEStep == "1" ? true : false;
            base.PIMStep = pIMStep == "1" ? true : false;
            base.PowerStep = powerStep == "1" ? true : false;
            base.ATEStep = aTEStep == "1" ? true : false;
            base.HFATEStep = hFATEStep == "1" ? true : false;
            base.AirtightnessStep = airtightnessStep == "1" ? true : false;
            this.EPROMCheckStep = ePROMCheckStep == "1" ? true : false;
            this.VSWRCheckStep = vSWRCheckStep == "1" ? true : false;
            this.FinalCheckStep = finalCheckStep == "1" ? true : false;
            base.PackageStep = packageStep == "1" ? true : false;
        }

        public string CustomerName { get; set; }
        public bool AssembleStepStep { get; set; }
        public bool JointingCheckStep { get; set; }
        public bool BlotScrewStep { get; set; }
        public bool QCFixedCheckStep { get; set; }
        public bool PCBAUnionStep { get; set; }
        public bool Aging2Step { get; set; }
        public bool Debug2Step { get; set; }
        public bool EPROMCheckStep { get; set; }
        public bool VSWRCheckStep { get; set; }
        public bool FinalCheckStep { get; set; }
    }
}
